package com.lmt_7;

import java.util.Arrays;
import java.util.Comparator;

public class LambdaTest {
    public static void main(String[] args) {
//
        String str[] = {"abc","bdf","Avf","Bmn","poi","dsv"};
        Arrays.sort(str, new Comparator<String>() {
            @Override
            public int compare(String o1, String o2) {
                return o1.compareToIgnoreCase(o2);
            }
        });
        Arrays.sort(str,String::compareToIgnoreCase);

        System.out.println(Arrays.toString(str));
    }
}
interface Swimming{
    void swim();
}